<?php

/*
 *    Document   : logout
 *   Created on : Jun 11, 2011, 4:28:57 PM
 *    Author     : ClarkT AKA FalleN
 *    Company    : Amodity
 *    Web        : http://www.amodity.com
 *    Copyright  : 2011
 */

class logout extends CI_Controller {

    function __construct() {
        parent::__construct();
        $this->load->model('admin/core');
        if (ENVIRONMENT == 'development') {
            $this->output->enable_profiler(TRUE);
        }
    }

    public function index() {
        $this->auth->logout();
        $this->message->set('success', lang('cp_logout'));
        $this->template->set('title', lang('g_login'));
        $this->template->set('bodyid', lang('login'));
        $this->template->load('templates/admin_login_template', 'admin_login', null, 'admin');
    }

}

/* End of file logout */